package sliver.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "box_Advertisementlog")
@Access(AccessType.FIELD)
public class AdvertisementLog implements Serializable{

	private static final long serialVersionUID = -8191034860298538327L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id")
	private Long id;
	
	@Column(name = "show_date")
	private Date showDate;
	
	@Column(name = "collect_state")
	private Boolean collectState;
	
	@Column(name = "tdc_state")
	private Boolean twoDimensionalCode;
	
	@ManyToOne
	@JoinColumn(name = "shopper_id")
	private Shopper shopper;
	
	@ManyToOne
	@JoinColumn(name = "advertisement_id")
	private Advertisement advertisement;
	
	@ManyToOne
	@JoinColumn(name = "machine_id")
	private Machine machine;
	
	@ManyToOne
	@JoinColumn(name = "custom_id")
	private Custom custom;
	
	public AdvertisementLog(){
		
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getShowDate() {
		return showDate;
	}

	public void setShowDate(Date showDate) {
		this.showDate = showDate;
	}

	public Boolean getCollectState() {
		return collectState;
	}

	public void setCollectState(Boolean collectState) {
		this.collectState = collectState;
	}

	public Boolean getTwoDimensionalCode() {
		return twoDimensionalCode;
	}

	public void setTwoDimensionalCode(Boolean twoDimensionalCode) {
		this.twoDimensionalCode = twoDimensionalCode;
	}

	public Shopper getShopper() {
		return shopper;
	}

	public void setShopper(Shopper shopper) {
		this.shopper = shopper;
	}

	public Advertisement getAdvertisement() {
		return advertisement;
	}

	public void setAdvertisement(Advertisement advertisement) {
		this.advertisement = advertisement;
	}

	public Machine getMachine() {
		return machine;
	}

	public void setMachine(Machine machine) {
		this.machine = machine;
	}

	public Custom getCustom() {
		return custom;
	}

	public void setCustom(Custom custom) {
		this.custom = custom;
	}
}
